#region (c) 2014 THN Solutions LLC. - All rights reserved
/*
THN TELEPORT version 2

Copyright (c) 2014, THN Solutions LLC. ( www.ThnSolutions.com )
Author: Nguyễn, M. Hải                 ( www.Minh-Hai.com     )
All rights reserved.

This library is dual-licensed.
  + For commercial software, please obtain a commercial license from THN Solutions LLC.

  + For free software, this library is licensed under GPL version 3. A summary of GPLv3 is
    listed below. You should also find a copy of GPLv3 as file License_GPLv3.txt included
	with the source-code files.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 3 as published by
    the Free Software Foundation  of the License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#endregion

#region Record of Change
//             							CHANGE HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | DEVELOPER  | DESCRIPTION                                              |
// -------------------------------------------------------------------------------------
// | 28-Aug-09 | HaiNM      | First creation.                                          |
// -------------------------------------------------------------------------------------
//
#endregion

#region Record of Audit
//             							REVIEW HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | REVIEWER   | NOTES                                                    |
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
//
#endregion

#region Using directives
using System;

using Thn;
#endregion

namespace Thn.Communication.Teleporting.Connectors.WebService
{
    /// <summary>
    /// Certificate problems while using SSL.
    /// <see cref="http://msdn.microsoft.com/en-us/library/system.net.icertificatepolicy.aspx"/>
    /// </summary>
#if DEBUG 
    public
#else
    internal
#endif
    enum CertificateProblem : long
    {

        /// <summary>
        /// Certificate is expired.
        /// </summary>
        CertificateExpired = 0x800B0101,
        /// <summary>
        /// Certificate validity period nesting.
        /// </summary>
        CertificateValidityPeriodNesting = 0x800B0102,
        /// <summary>
        /// Certificate role.
        /// </summary>
        CertificateRole = 0x800B0103,
        /// <summary>
        /// Certificate path length const.
        /// </summary>
        CertificatePathLenConst = 0x800B0104,
        /// <summary>
        /// Certificate cirtical.
        /// </summary>
        CertificateCirtical = 0x800B0105,
        /// <summary>
        /// Certificate purpose.
        /// </summary>
        CertificatePurpose = 0x800B0106,
        /// <summary>
        /// Certificate issue chaining.
        /// </summary>
        CertificateIssueChaining = 0x800B0107,
        /// <summary>
        /// Certificate malformed.
        /// </summary>
        CertificateMalformed = 0x800B0108,
        /// <summary>
        /// Certificate untrusted root.
        /// </summary>
        CertificateUntrustedRoot = 0x800B0109,
        /// <summary>
        /// Certificate chaining.
        /// </summary>
        CertificateChaining = 0x800B010A,
        /// <summary>
        /// Certificate revoked.
        /// </summary>
        CertificateRevoked = 0x800B010C,
        /// <summary>
        /// Certificate untrusted test root.
        /// </summary>
        CertificateUntrustedTestRoot = 0x800B010D,
        /// <summary>
        /// Certificate revocation failure.
        /// </summary>
        CertificateRevocationFailure = 0x800B010E,
        /// <summary>
        /// Certificate CN not match.
        /// </summary>
        CertificateCnNoMatch = 0x800B010F,
        /// <summary>
        /// Certificate wrong usage.
        /// </summary>
        CertificateWrongUsage = 0x800B0110,
        /// <summary>
        /// Certificate unstrusted CA.
        /// </summary>
        CertificateUntrustedCA = 0x800B0112
    }
}
